Skip to main content
GET
/
v1
/
knowledge
/
{kb_id}
Get Knowledge Base Details
curl --request GET \
  --url https://api.xpander.ai/v1/knowledge/{kb_id} \
  --header 'x-api-key: <api-key>'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "type": "managed",
  "organization_id": "<string>",
  "agent_id": "<string>",
  "total_documents": 0
}
Retrieve detailed information about a specific knowledge base including its configuration, document count, and metadata.

Path Parameters

kb_id
string
required
Unique identifier of the knowledge base (UUID format)

Response

id
string
Unique identifier for the knowledge base (UUID)
name
string
Display name of the knowledge base
description
string
Optional description of the knowledge base purpose (can be null)
type
string
Knowledge base type (e.g., managed)
organization_id
string
UUID of the organization that owns this knowledge base
agent_id
string
UUID of the agent this knowledge base is attached to (can be null)
total_documents
integer
Total number of documents in the knowledge base

Example Request

curl -X GET -H "x-api-key: YOUR_API_KEY" \
  https://api.xpander.ai/v1/knowledge/73dc30ca-bdbf-42f7-a39f-93aff4f8522e

Example Response

{
  "id": "73dc30ca-bdbf-42f7-a39f-93aff4f8522e",
  "name": "PeopleDB",
  "description": "Dataset contains data about people and their phone number",
  "type": "managed",
  "organization_id": "91fbe9bc-REDACTED",
  "agent_id": null,
  "total_documents": 0
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

kb_id
string
required

Response

Successful Response

Represents a Knowledge Base item.

Attributes: id (str): KB unique identifier. name (str): KB name specified by the user. description (str): KB description specified by the user. type (KnowledgeBaseType): KB type, either managed or external. organization_id (str): Organization ID associated with the KB. total_documents (int): Total count of embedded documents. Defaults to 0.

id
string
required

KB unique identifier

name
string
required

KB name specified by the user

type
enum<string>
required

KB type, managed / external

Available options:
managed,
external
organization_id
string
required

Organization ID

description
string | null

KB description specified by the user

agent_id
string | null

Agent ID

total_documents
integer
default:0

Total count of embedded documents